package top.aicey.ai.sparring.listener;

import top.aicey.ai.sparring.dto.event.GenerateReportEvent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @author yangyongping
 * @date 2025-01-12 8:55 下午
 */
@Component
public class LocalReportProcessor implements ReportProcessor{

    @Autowired
    private ReportListener reportListener;

    /**
     * @param event
     */
    @Override
    @Async
    public void generate(GenerateReportEvent event) {
        reportListener.handle(event);
    }

}
